import request from '@/utils/request'
// 抢修管理
// 抢修任务
// 抢修列表数据
export function repairtaskList(data) {
    return request({
        url: '/admin/systemRushRepair/list',
        method: 'post',
        data
    })
}
// 附件列表
export function seeAccessory(data) {
    return request({
        url: '/admin/systemRushRepairFile/list',
        method: 'post',
        data
    })
}
// 抢修任务添加附件
export function addPlanFile(data) {
    return request({
        url: '/admin/systemRushRepairFile/create',
        method: 'post',
        data
    })
}
// 删除附件
export function deleteAccessory(data) {
    return request({
        url: '/admin/systemRushRepairFile/delete',
        method: 'post',
        data
    })
}
// 抢修任务详情
export function taskDetail(data) {
    return request({
        url: '/admin/systemRushRepair/detail',
        method: 'post',
        data
    })
}
// 进度
export function progre(data) {
    return request({
        url: '/admin/systemTaskProgress/workProgress',
        method: 'post',
        data
    })
}
// 抢修记录
export function repairRecordList(data) {
    return request({
        url: '/admin/systemRushRepair/taskList',
        method: 'post',
        data
    })
}
// 任务转工单
export function toWork(data) {
    return request({
        url: '/admin/systemTask/taskToWork',
        method: 'post',
        data
    })
}
// 删除抢修记录
export function delsPlan(data) {
    return request({
        url: '/admin/systemRushRepair/delete',
        method: 'post',
        data
    })
}
// 新增抢修记录
export function addList(data) {
    return request({
        url: '/admin/systemRushRepair/create',
        method: 'post',
        data
    })
}
// 编辑抢修记录
export function updatePlan(data) {
    return request({
        url: '/admin/systemRushRepair/update',
        method: 'post',
        data
    })
}